package com.platform.admin.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.List;

@ApiModel("用户信息DTO")
@Data
@Builder
public class UserAuthDTO {
    @ApiModelProperty("用户ID")
    private Long userId;
    @ApiModelProperty("用户名")
    //@Size(min = 3, max = 20, message = "名称长度必须在3-20之间")
    private String username;
    @ApiModelProperty("用户密码")
    private String password;
    @ApiModelProperty("用户状态：1-有效；0-禁用")
    private Integer status;
    @ApiModelProperty("用户角色编码集合 [\"ROOT\",\"ADMIN\"]")
    private List<String> roles;
}
